
define(['vue','config','common'],function(Vue,config,utils){
	'use strict';

	var BusinessInfoView=new Vue({
		el:'#app',
		data:{
			examineData:{}, 				//商家信息
			PhotoBrowser:'',	//图片浏览器
		},
		created:function(){
			var _this=this;
			utils.ajax(utils.getWebUrl('shop/examine'),{},'POST',function(res){
				console.log(res)
				_this.examineData = res.data;
				
				/*if (_this.examineData.auditStatus !== '2') {
	                window.location.href = "Settings.html";
	                debugger
	            }*/
			},function(){
				$('.DataLoading').show();
			},function(){
				$('.DataLoading').hide();
			})
		},
		methods:{
			AddPhotoBrowser:function(event){
				// /console.log($(event.currentTarget))

				var $target = $(event.currentTarget);
				var img = $(event.currentTarget).attr('src')
				var myApp = new Framework7();
				this.PhotoBrowser = myApp.photoBrowser({
				    zoom: 400,
				    photos: [img],
				    backLinkText: '关闭',
				    loop: false,
				    ofText:'/',
				    expositionHideCaptions: true
				});
				this.PhotoBrowser.open(); 
			}
		}
	})

	return BusinessInfoView;
});